﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Home-Cruise.ascx.cs" Inherits="User_Control_Home_Cruise" %>
<div id="home-csruises">
<asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1" 
    RepeatColumns="4" RepeatDirection="Horizontal" Width="100%">
    <ItemTemplate>
        <div style="width:24%;padding-left:1%;">
            <table style="width:100%;text-align:center">
                <tr>
                    <td>
                        <asp:ImageButton ID="ImageButton1" runat="server" Height="100px" 
                            ImageUrl='<%# Eval("photo") %>' Width="158px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            NavigateUrl='<%# Eval("photo") %>' Text='<%# Eval("name") %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("name") %>'></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <br />
    </ItemTemplate>
</asp:DataList>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" 
    DataFile="~/Xml/cruises.xml"></asp:XmlDataSource>
</div>
